import axios from '@/libs/api.request'

export const login = ({
  username,
  pwd
}) => {
  // let baseUrl = axios.baseUrl;
  
  const data = {
    username,
    pwd
  }
  return axios.request({
    url: '/login/login',
    headers:{},
    data,
    method: 'post'
  })
}

export const getUserInfo = (token) => {
  return axios.request({
    url: 'get_info',
    params: {
      token
    },
    method: 'get'
  })
}

export const logout = (token) => {
  return axios.request({
    url: 'logout',
    method: 'post'
  })
}
 
 
 